import request from "../request";

export function futureSeven() {  //未来七日预测票数统计
    return request({
        url: 'manage/person/tickets/week/booking/data',
        method: 'GET',
    })
}

export function outSeven() {  //未来七日退票
    return request({
        url: 'manage/person/tickets/week/refund/num/data',
        method: 'GET',
    })
}

export function allUser() {  //各渠道注册用户统计
    return request({
        url: 'manage/person/tickets/insert/user/num2',
        method: 'GET',
    })
}

export function sevenMake() {  //近七天预约数据
    return request({
        url: 'manage/person/tickets/channel/booking2',
        method: 'GET',
    })
}

export function todayPeople() {  //游客今日预约统计
    return request({
        url: 'manage/person/tickets/today/booking2',
        method: 'GET',
    })
}

export function futurePeople() {  //可预约期内统计
    return request({
        url: 'manage/person/tickets/future/booking/data',
        method: 'GET',
    })
}

export function outPeople() {  //退票数量统计
    return request({
        url: 'manage/person/tickets/refund/num/data',
        method: 'GET',
    })
}

export function morePeople() {  //游客多次预约统计
    return request({
        url: 'manage/person/tickets/repeatedly/booking',
        method: 'GET',
    })
}

export function hotelData() {  //酒店数据统计
    return request({
        url: 'manage/person/tickets/hotel/statistics',
        method: 'GET',
    })
}

export function todayComplaint(params) {  //当日投诉数据统计
    return request({
        url: 'incident/event/cockpit/park/queryNumber/' + params.type,
        method: 'GET',
        header:{'Tenant-id':10100}
    })
}

export function sevenComplaint(params) {  //近七天投诉事件数据
    return request({
        url: 'incident/event/cockpit/public/querySevenAnalysis/' + params.type,
        method: 'GET',
        header:{'Tenant-id':10100}
    })
}

export function parkMoney() {  //园区收益
    return request({
        url: 'manage/person/tickets/revenue2',
        method: 'GET',
    })
}

export function tsTable(params) {  //当日投诉数据统计
    return request({
        url: 'incident/event/cockpit/public/queryPublicIssue/' + params.type,
        method: 'GET',
        header:{'Tenant-id':10100},
        params:params.data
    })
}

export function sevenChannel() {  //各渠道预约 7天
    return request({
        url: 'manage/person/tickets/channel/booking2',
        method: 'GET',
    })
}



export function stadium() {  //酒店点位
    return request({
        url: 'ecosystem/land/stadium/all',
        method: 'GET',
        header:{'Tenant-id':10100},
    })
}
